/*
 * @Author: your name
 * @Date: 2020-10-15 19:32:59
 * @LastEditTime: 2021-01-15 14:28:22
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \longh_h5\src\apis\user\MyMessage.js
 */
import request from '@/utils/request'

//查询产品分类下拉
export function productCategory(params) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/productCategory/getByParent',
        method: 'GET',
        params
    })
}

//添加留言
export function addMessage(params) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/userMessage/add',
        method: 'POST',
        data: params
    })
}

//获取他人的留言-产品需求分页列表
export function getMaterialsDemandPageList(params) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/userMessage/getMaterialsDemandPageList',
        method: 'POST',
        data: params
    })
}

//获取我的留言-产品需求分页列表
export function getMyMaterialsDemandPageList(params) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/userMessage/getMyMaterialsDemandPageList',
        method: 'POST',
        data: params
    })
}

//获取我的留言-产品供应分页列表
export function getMyProductInfoPageList(params) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/userMessage/getMyProductInfoPageList',
        method: 'POST',
        data: params
    })
}


//获取我的留言-解决方案分页列表
export function getMyUserMessageSolutionInfoList(params) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/userMessage/getMyUserMessageSolutionInfoList',
        method: 'POST',
        data: params
    })
}

//获取他人的留言-产品供应分页列表
export function getProductInfoPageList(params) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/userMessage/getProductInfoPageList',
        method: 'POST',
        data: params
    })
}

//已读留言
export function updateMessage(params) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/userMessage/update',
        method: 'POST',
        data: params
    })
}

//已读留言
export function deleteMessage(params) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/userMessage/delete',
        method: 'POST',
        data:params
    })
}

